-- GENERATED SPELL FOR [Legashi Rogue] --


function spell0_6201(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6201', 565, 1)
end

function spell1_6201(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6201', 4331, 1)
end

function Sorts_6201(pUnit, Event)
local choix_sorts_6201 = math.random(0, 1)
if choix_sorts_6201 == 0 then
pUnit:RegisterEvent('spell0_6201', 1, 1)
end
if choix_sorts_6201 == 1 then
pUnit:RegisterEvent('spell1_6201', 1, 1)
end
end

function mob6201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6201', math.random(1500, 3000), 1)
end

function mob6201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6201, 1, 'mob6201_Action')
RegisterUnitEvent(6201, 2, 'mob6201_Leave')
RegisterUnitEvent(6201, 3, 'mob6201_Kill')
RegisterUnitEvent(6201, 4, 'mob6201_Die')
